home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7705 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com(Pete)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: OWL compiling error
  5. Date: 25 Feb 1996 11:34:50 GMT
  6. Organization: Kalevi, Inc.
  7. Message-ID: <4gphgq$shu@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe14.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Feb 24, 1996 11:25:31 in article <OWL compiling error>, 'Claus Heiko
  15. Niesen <cniesen@cs.iastate.edu>' wrote: 
  16.  
  17.  
  18. >I'm trying to compile a prewritten code and I get the error message: 
  19. >Compiling HELLOVW.CPP: 
  20. >Fatal ..\..\..\LANGUAGE\BC45\INCLUDE\OWLCVT\OWLHDR.H 57: Error 
  21. >directive: OWL applications must be built with WIN31 and STRICT defined. 
  22. >I checked all my help files and reference guides that came with  
  23. >Boardland C++ Ver.4.51 but I couldn't find anything about it. 
  24. >Does anyone have a clue what the problem is? 
  25. A clue, but not a solution that I know will definitely solve your problem. 
  26. The fact that you are invoking ..\owlcvt\anyfile.h indicates that you 
  27. are compiling a program written with OWL 1.0 which came with BC++ 
  28. 3.x.  In that version, there was a requirement to designate the target 
  29. platforms -- either Windows 3.0 or 3.1. 
  30.  
  31. When building any Windows programs, it is a good idea to define 
  32. STRICT to give you additional protection with certain handle types 
  33. and others.  Of course, it forces you to do a small amount of 
  34. casts, but that's a small price to pay. 
  35.  
  36. Go into Options | Project and select Compiler | Defines.  Type into 
  37. the edit box: 
  38.  
  39. STRICT,WIN31 
  40.  
  41. and click on Ok. 
  42.  
  43. Then try recompiling. 
  44.  
  45. Good luck. 
  46.  
  47. -- 
  48. Pete Grant 
  49. Kalevi, Inc. 
  50. Software Engineering & development
  51.